from myro import *

def cmpImg(img1,img2):
    width1 = getWidth(img1)
    height1 = getHeight(img1)
    width2 = getWidth(img2)
    height2 = getHeight(img2)

    if(not width1 == width2) or (not height1 == height2):
        return False

    else:
        x = 0
        y = 0
        while(x < width1 and y < height1):
            pixel1 = getPixel(img1, x, y)
            pixel2 = getPixel(img2, x, y)

            if(not pixel1 == pixel2):
                return False

            x = x+6
            y = y+6

        return True


def passImg():
    print "1"
    img1 = makePicture("0.jpg")
    img2 = makePicture("a.jpg")

    print cmpImg(img1, img2)

